<?php
namespace Plu\Library\Services\Tga\Lottery;

use Plu\Library\Services\ServiceBase;

class RedisService extends ServiceBase {
    const KEY_OF_LOTTERY = "%s:max_count_key";

    public function __construct() {
        $this->_redis = $this->getRedis('webcache');
    }


    /**
     *  获取信息
     */
    public function get($suffix, $field){
        $key = sprintf(self::KEY_OF_LOTTERY, $suffix);

        return $this->_redis->hGet($key, $field);
    }
}
?>
